package com.alan.weather.utils;

public class DateUtil {
    public static String transform(String dateStr){
        String[] strings = dateStr.split("-");

        String res = strings[2]+"/"+strings[1]+"/"+strings[0];
        return res;
    }

    public static String getYear(String dateStr){
        return dateStr.split("-")[0];
    }
}
